package com.bytz.modules.system.service.impl;

import com.bytz.modules.cms.reseller.constant.ResellerConstant;
import com.bytz.modules.system.entity.SysPermission;
import com.bytz.modules.system.mapper.ResellerPermissionMapper;
import com.bytz.modules.system.service.IResellerPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author shanxuezhong
 */
@Service
public class ResellerPermissionServiceImpl implements IResellerPermissionService {

    @Autowired
    private ResellerPermissionMapper resellerPermissionMapper;

    @Override
    public List<SysPermission> queryPermissions() {
        return resellerPermissionMapper.queryPermissions(ResellerConstant.ResellerSecurity.RESELLER_ROLE_CODE);
    }
}
